]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Fix crash with the idle monitor
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 15 Feb 2013 12:59:23 +0000 (07:59 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 15 Feb 2013 13:01:00 +0000 (08:01 -0500)
js/ui/screenShield.js

index e9301a9ef012c9d7e105854f7c3b1ce4791ef726..0329381ae0f14a1361ddbbff44e376e0f70545e8 100644 (file)
@@ -771,7 +771,7 @@ const ScreenShield = new Lang.Class({
         if (this._activationTime == 0)
             this._activationTime = GLib.get_monotonic_time();
 
-        this._becameActiveId = this.idleMonitor.add_user_active_watch(this._onUserBecameActive);
+        this._becameActiveId = this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onUserBecameActive));
 
         let shouldLock = this._settings.get_boolean(LOCK_ENABLED_KEY) && !this._isLocked;